home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / DesktopAnimServer.xh < prev    next >
Text File  |  1996-05-01  |  13KB  |  469 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: DesktopAnimServer.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_DesktopAnimServer_xh
  11. #define SOM_DesktopAnimServer_xh
  12.  
  13. class DesktopAnimServer;
  14.  
  15. #define DesktopAnimServer_MajorVersion 0
  16. #define DesktopAnimServer_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <DesktopAnimPanel.xh>
  22. #include <DesktopAnimDraw.xh>
  23. #include <FileManagerTypes.h>
  24.  
  25. /* C++ SOM defs */
  26. #include <somcls.xh>
  27. #include <somcm.xh>
  28.  
  29. /* C++ parent defs */
  30. #ifndef SOM_SOMObject_xh
  31. #include <somobj.xh>
  32. #endif
  33.  
  34. #ifndef DesktopAnimServer_API
  35. #define DesktopAnimServer_API
  36. /*
  37.  * -- The Class API
  38.  */
  39.  
  40. /*
  41.  * Start of user-defined types:
  42.  */
  43. class SOMClass;
  44. class SOMObject;
  45. class Repository;
  46.  
  47. /*
  48.  * End of user-defined types.
  49.  */
  50.  
  51. #ifdef OLDIBMSOMAPISUPPORT
  52. #define DesktopAnimServerCClassData DesktopAnimServerClassData
  53. #define DesktopAnimServerNewClass(major,minor) somNewVersionedClassReference(DesktopAnimServer,major,minor)
  54. #endif
  55.  
  56. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  57. #define DesktopAnimServerMetaClass SOMClass
  58.  
  59. #if PRAGMA_ALIGN_SUPPORTED
  60. #  pragma options align=power
  61. #endif
  62.  
  63. /* The API to the DesktopAnimServer class object, and the methods it introduces. */
  64. SOMEXTERN struct DesktopAnimServerClassDataStructure {
  65. #ifdef OLDIBMSOMAPISUPPORT
  66.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  67. #else
  68.     long zero;
  69. #endif
  70.     somStaticClassInfo *sci;
  71.     somDToken        instanceDataToken;
  72.     long reserved [3];
  73.     somDToken fRefNum;
  74.     somDToken fDesktopModuleList;
  75.     somMToken _get_fRefNum;
  76.     somMToken _get_fDesktopModuleList;
  77.     somMToken Initialize;
  78.     somMToken Close;
  79.     somMToken CountModules;
  80.     somMToken GetDesktopAnimDraw;
  81.     somMToken GetDesktopAnimPanel;
  82.     somMToken GetModulesFile;
  83.     somMToken GetModuleDescription;
  84.     somMToken unused0;
  85. } SOMDLINK DesktopAnimServerClassData;
  86.  
  87. #if PRAGMA_ALIGN_SUPPORTED
  88. #  pragma options align=reset
  89. #endif
  90.  
  91. #if !defined(DesktopAnimServer_Class_Source) && !defined(SOM_Module_desktopanimserver_Source)
  92. #if PRAGMA_IMPORT_SUPPORTED
  93. #pragma import list DesktopAnimServerClassData
  94. #endif
  95. #endif
  96.  
  97.  
  98. /*
  99.  * -- Typedefs for DesktopAnimServer Method Procedures
  100.  */
  101. SOMEXTERN {
  102. typedef OSStatus   (* SOMLINK somTD_DesktopAnimServer_Initialize)(DesktopAnimServer *somSelf, Environment *ev,
  103.         FSObjectRef moduleFileRef,
  104.         SInt16 refNum,
  105.         DesktopAnimModuleListRsrcHandle modulesList);
  106. typedef OSStatus   (* SOMLINK somTD_DesktopAnimServer_Close)(DesktopAnimServer *somSelf, Environment *ev);
  107. typedef void   (* SOMLINK somTD_DesktopAnimServer_CountModules)(DesktopAnimServer *somSelf, Environment *ev,
  108.         DesktopAnimFlags desktopAnimFlags,
  109.         SInt32* modulesCnt);
  110. typedef OSStatus   (* SOMLINK somTD_DesktopAnimServer_GetDesktopAnimDraw)(DesktopAnimServer *somSelf, Environment *ev,
  111.         AVIDType prefsDisplayID,
  112.         DesktopAnimModuleDescRef moduleDescRef,
  113.         DesktopAnimModuleInfo* moduleInfo,
  114.         DesktopAnimDraw** desktopAnimDraw);
  115. typedef OSStatus   (* SOMLINK somTD_DesktopAnimServer_GetDesktopAnimPanel)(DesktopAnimServer *somSelf, Environment *ev,
  116.         AVIDType prefsDisplayID,
  117.         DesktopAnimModuleDescRef moduleDescRef,
  118.         DesktopAnimModuleInfo* moduleInfo,
  119.         DesktopAnimPanel** desktopAnimPanel);
  120. typedef OSStatus   (* SOMLINK somTD_DesktopAnimServer_GetModulesFile)(DesktopAnimServer *somSelf, Environment *ev,
  121.         FSObjectRef* modulesFileRef);
  122. typedef OSStatus   (* SOMLINK somTD_DesktopAnimServer_GetModuleDescription)(DesktopAnimServer *somSelf, Environment *ev,
  123.         SInt32 index,
  124.         DesktopAnimModuleInfo* moduleInfo,
  125.         DesktopAnimModuleDescRef* moduleDescRef);
  126. typedef DesktopAnimModuleListRsrcHandle   (* SOMLINK somTD_DesktopAnimServer__get_fDesktopModuleList)(DesktopAnimServer *somSelf, Environment *ev);
  127. typedef SInt16   (* SOMLINK somTD_DesktopAnimServer__get_fRefNum)(DesktopAnimServer *somSelf, Environment *ev);
  128.  
  129. /*
  130.  * -- Typedefs for Inherited Methods
  131.  */
  132. typedef void   (* SOMLINK somTD_DesktopAnimServer_somInit)(DesktopAnimServer *somSelf);
  133. typedef void   (* SOMLINK somTD_DesktopAnimServer_somUninit)(DesktopAnimServer *somSelf);
  134. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimServer_somDuplicateReference)(DesktopAnimServer *somSelf);
  135. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somCompareReference)(DesktopAnimServer *somSelf,
  136.         SOMObject* anObject);
  137. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimServer_somRelease)(DesktopAnimServer *somSelf);
  138. typedef void   (* SOMLINK somTD_DesktopAnimServer_somFree)(DesktopAnimServer *somSelf);
  139. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somCanDelete)(DesktopAnimServer *somSelf);
  140. typedef SOMClass*   (* SOMLINK somTD_DesktopAnimServer_somGetClass)(DesktopAnimServer *somSelf);
  141. typedef corbastring   (* SOMLINK somTD_DesktopAnimServer_somGetClassName)(DesktopAnimServer *somSelf);
  142. typedef long   (* SOMLINK somTD_DesktopAnimServer_somGetSize)(DesktopAnimServer *somSelf);
  143. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somIsA)(DesktopAnimServer *somSelf,
  144.         SOMClass* aClassObj);
  145. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somRespondsTo)(DesktopAnimServer *somSelf,
  146.         somId mId);
  147. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somIsInstanceOf)(DesktopAnimServer *somSelf,
  148.         SOMClass* aClassObj);
  149. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somDispatch)(DesktopAnimServer *somSelf,
  150.         somToken* retValue,
  151.         somId methodId,
  152.         va_list ap);
  153. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somClassDispatch)(DesktopAnimServer *somSelf,
  154.         SOMClass* clsObj,
  155.         somToken* retValue,
  156.         somId methodId,
  157.         va_list ap);
  158. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somCastObj)(DesktopAnimServer *somSelf,
  159.         SOMClass* cls);
  160. typedef boolean   (* SOMLINK somTD_DesktopAnimServer_somResetObj)(DesktopAnimServer *somSelf);
  161. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimServer_somPrintSelf)(DesktopAnimServer *somSelf);
  162. typedef void   (* SOMLINK somTD_DesktopAnimServer_somDumpSelf)(DesktopAnimServer *somSelf,
  163.         long level);
  164. typedef void   (* SOMLINK somTD_DesktopAnimServer_somDumpSelfInt)(DesktopAnimServer *somSelf,
  165.         long level);
  166. }
  167.  
  168. #endif /* DesktopAnimServer_API */
  169.  
  170.  
  171. /*
  172.  * -- This emitter treats Method Tokens as Thunks by default.
  173.  * -- Use the sc modifier "nothunks" to change this default
  174.  */
  175. #undef somresolve_
  176. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  177.  
  178. /*
  179.  * -- The C++ Wrapper Class for DesktopAnimServer
  180.  */
  181. class DesktopAnimServer : public SOMObject
  182. {
  183. public:
  184.  
  185. // DesktopAnimServer::new registers use of the class object, and then uses somNew
  186. // to allocate memory and load the object method table pointer. 
  187. void *operator new(size_t size)
  188. {
  189.     SOM_IgnoreWarning(size);
  190.     // Allocate memory using the default allocator for DesktopAnimServer, and
  191.     // clear mem & set method table pointer, call basic initialization
  192.     return (void*) somNewObject(DesktopAnimServer);
  193. }
  194.  
  195. // DesktopAnimServer::delete uses the default deallocator for the object's class.
  196. void operator delete(void * obj)
  197. {
  198.     if (obj) {
  199.         SOM_Resolve(obj,SOMObject,somFree)
  200.            ( (SOMObject*) obj );
  201.     }
  202. }
  203.  
  204. /* method: Initialize */
  205. OSStatus   Initialize(Environment *ev,
  206.         FSObjectRef moduleFileRef,
  207.         SInt16 refNum,
  208.         DesktopAnimModuleListRsrcHandle modulesList)
  209. {
  210.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,Initialize)
  211.     (this,ev,moduleFileRef,refNum,modulesList);
  212. }
  213.  
  214. /* method: Close */
  215. OSStatus   Close(Environment *ev)
  216. {
  217.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,Close)
  218.     (this,ev);
  219. }
  220.  
  221. /* method: CountModules */
  222. void   CountModules(Environment *ev,
  223.         DesktopAnimFlags desktopAnimFlags,
  224.         SInt32* modulesCnt)
  225. {
  226.    SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,CountModules)
  227.     (this,ev,desktopAnimFlags,modulesCnt);
  228. }
  229.  
  230. /* method: GetDesktopAnimDraw */
  231. OSStatus   GetDesktopAnimDraw(Environment *ev,
  232.         AVIDType prefsDisplayID,
  233.         DesktopAnimModuleDescRef moduleDescRef,
  234.         DesktopAnimModuleInfo* moduleInfo,
  235.         DesktopAnimDraw** desktopAnimDraw)
  236. {
  237.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetDesktopAnimDraw)
  238.     (this,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimDraw);
  239. }
  240.  
  241. /* method: GetDesktopAnimPanel */
  242. OSStatus   GetDesktopAnimPanel(Environment *ev,
  243.         AVIDType prefsDisplayID,
  244.         DesktopAnimModuleDescRef moduleDescRef,
  245.         DesktopAnimModuleInfo* moduleInfo,
  246.         DesktopAnimPanel** desktopAnimPanel)
  247. {
  248.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetDesktopAnimPanel)
  249.     (this,ev,prefsDisplayID,moduleDescRef,moduleInfo,desktopAnimPanel);
  250. }
  251.  
  252. /* method: GetModulesFile */
  253. OSStatus   GetModulesFile(Environment *ev,
  254.         FSObjectRef* modulesFileRef)
  255. {
  256.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetModulesFile)
  257.     (this,ev,modulesFileRef);
  258. }
  259.  
  260. /* method: GetModuleDescription */
  261. OSStatus   GetModuleDescription(Environment *ev,
  262.         SInt32 index,
  263.         DesktopAnimModuleInfo* moduleInfo,
  264.         DesktopAnimModuleDescRef* moduleDescRef)
  265. {
  266.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,GetModuleDescription)
  267.     (this,ev,index,moduleInfo,moduleDescRef);
  268. }
  269.  
  270. /* method: _get_fDesktopModuleList */
  271. DesktopAnimModuleListRsrcHandle   _get_fDesktopModuleList(Environment *ev)
  272. {
  273.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,_get_fDesktopModuleList)
  274.     (this,ev);
  275. }
  276.  
  277. /* method: _get_fRefNum */
  278. SInt16   _get_fRefNum(Environment *ev)
  279. {
  280.    return SOM_ResolveD(this,DesktopAnimServer,DesktopAnimServer,_get_fRefNum)
  281.     (this,ev);
  282. }
  283.  
  284.  
  285. /*
  286.  * -- Inherited methods
  287.  */
  288. /* method: somInit */
  289. void   somInit()
  290. {
  291.    SOM_ResolveD(this,DesktopAnimServer,SOMObject,somInit)
  292.     (this);
  293. }
  294.  
  295. /* method: somUninit */
  296. void   somUninit()
  297. {
  298.    SOM_ResolveD(this,DesktopAnimServer,SOMObject,somUninit)
  299.     (this);
  300. }
  301.  
  302. /* method: somDuplicateReference */
  303. SOMObject*   somDuplicateReference()
  304. {
  305.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDuplicateReference)
  306.     (this);
  307. }
  308.  
  309. /* method: somCompareReference */
  310. boolean   somCompareReference(SOMObject* anObject)
  311. {
  312.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somCompareReference)
  313.     (this,anObject);
  314. }
  315.  
  316. /* method: somRelease */
  317. SOMObject*   somRelease()
  318. {
  319.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somRelease)
  320.     (this);
  321. }
  322.  
  323. /* method: somFree */
  324. void   somFree()
  325. {
  326.    SOM_ResolveD(this,DesktopAnimServer,SOMObject,somFree)
  327.     (this);
  328. }
  329.  
  330. /* method: somCanDelete */
  331. boolean   somCanDelete()
  332. {
  333.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somCanDelete)
  334.     (this);
  335. }
  336.  
  337. /* method: somGetClass */
  338. SOMClass*   somGetClass()
  339. {
  340.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somGetClass)
  341.     (this);
  342. }
  343.  
  344. /* method: somGetClassName */
  345. corbastring   somGetClassName()
  346. {
  347.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somGetClassName)
  348.     (this);
  349. }
  350.  
  351. /* method: somGetSize */
  352. long   somGetSize()
  353. {
  354.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somGetSize)
  355.     (this);
  356. }
  357.  
  358. /* method: somIsA */
  359. boolean   somIsA(SOMClass* aClassObj)
  360. {
  361.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somIsA)
  362.     (this,aClassObj);
  363. }
  364.  
  365. /* method: somRespondsTo */
  366. boolean   somRespondsTo(somId mId)
  367. {
  368.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somRespondsTo)
  369.     (this,mId);
  370. }
  371.  
  372. /* method: somIsInstanceOf */
  373. boolean   somIsInstanceOf(SOMClass* aClassObj)
  374. {
  375.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somIsInstanceOf)
  376.     (this,aClassObj);
  377. }
  378.  
  379. /* va_list method: somDispatch */
  380. /* the va_list invocation form */
  381. boolean   DesktopAnimServer_somDispatch(somToken* retValue,
  382.         somId methodId,
  383.         va_list ap)
  384. {
  385.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDispatch)
  386.     (this,retValue,methodId,ap);
  387. }
  388.  
  389. /* the varargs invocation form */
  390. boolean   somDispatch(somToken* retValue,
  391.         somId methodId,
  392.         ...)
  393. {
  394.    va_list ap;
  395.    va_start(ap, methodId);
  396.       boolean __somResult = 
  397.       (boolean) SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDispatch)
  398.     (this,retValue,methodId,ap);
  399.    va_end(ap);
  400.    return __somResult;
  401. }
  402.  
  403. /* va_list method: somClassDispatch */
  404. /* the va_list invocation form */
  405. boolean   DesktopAnimServer_somClassDispatch(SOMClass* clsObj,
  406.         somToken* retValue,
  407.         somId methodId,
  408.         va_list ap)
  409. {
  410.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somClassDispatch)
  411.     (this,clsObj,retValue,methodId,ap);
  412. }
  413.  
  414. /* the varargs invocation form */
  415. boolean   somClassDispatch(SOMClass* clsObj,
  416.         somToken* retValue,
  417.         somId methodId,
  418.         ...)
  419. {
  420.    va_list ap;
  421.    va_start(ap, methodId);
  422.       boolean __somResult = 
  423.       (boolean) SOM_ResolveD(this,DesktopAnimServer,SOMObject,somClassDispatch)
  424.     (this,clsObj,retValue,methodId,ap);
  425.    va_end(ap);
  426.    return __somResult;
  427. }
  428.  
  429. /* method: somCastObj */
  430. boolean   somCastObj(SOMClass* cls)
  431. {
  432.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somCastObj)
  433.     (this,cls);
  434. }
  435.  
  436. /* method: somResetObj */
  437. boolean   somResetObj()
  438. {
  439.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somResetObj)
  440.     (this);
  441. }
  442.  
  443. /* method: somPrintSelf */
  444. SOMObject*   somPrintSelf()
  445. {
  446.    return SOM_ResolveD(this,DesktopAnimServer,SOMObject,somPrintSelf)
  447.     (this);
  448. }
  449.  
  450. /* method: somDumpSelf */
  451. void   somDumpSelf(long level)
  452. {
  453.    SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDumpSelf)
  454.     (this,level);
  455. }
  456.  
  457. /* method: somDumpSelfInt */
  458. void   somDumpSelfInt(long level)
  459. {
  460.    SOM_ResolveD(this,DesktopAnimServer,SOMObject,somDumpSelfInt)
  461.     (this,level);
  462. }
  463.  
  464. };   /* DesktopAnimServer */
  465.  
  466.  
  467.  
  468. #endif       /* SOM_DesktopAnimServer_xh */
  469.